<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style>
.td_item {
    height:30px; 
    line-height: 30px; 
    width: 100%;   
    vertical-align: middle; 
    margin:0px; 
    padding:0px 0px 0px 0px; 
    overflow: hidden;
    border-top:solid 1px #b7d1e6;
}

.td_item2 {
	height: 30px;
	line-height: 30px;
	width: 100%;
	vertical-align: middle;
	margin: 0px;
	padding: 0px 0px 0px 0px;
	overflow: hidden;
	
}

.checkboxWidth {
	width: 200px;
}

.td_item_span {
	display: block;
	text-align: center;
	width: 71% !important;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<c:set var="grant_code">
	<x:out select="$xmlData/data/proposal/grant_code" />
</c:set>
<c:set var="sub_grant_code">
	<x:out select="$xmlData/data/proposal/sub_grant_code" />
</c:set>
<c:set var="nature_value">
	<x:out
		select="$xmlData/data/organization/finance/nature_value" />
</c:set>

<c:if test="${grant_code==635}">
	<!-- 635国家基础科学人才培养基金 -->
	<c:set var="Class">class="gray" </c:set>
</c:if>
<c:if test="${fn:substring(nature_value,0,1)=='A' }">
<div style="margin-bottom: 5px;">
    		<strong>温馨提示：</strong><br/>
    		<security:authorize ifNotGranted="A_DAILU_PROPOSAL">
    		单位财务信息从【单位维护表】中导入，由单位管理员填写，如有疑问请联系单位管理员进行修改。 
    		</security:authorize>
    		<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
    		单位财务信息从【单位维护表】中导入，如有数据需要调整，请您到【系统管理】->【单位信息维护】功能进行修改 。
    		</security:authorize>
</div>
</c:if>
<div class="t_bar">单位财务情况（单位：万元）</div>
<table width="100%" border="0" cellpadding="0" cellspacing="1"
	id="finances" class="t_css">
	<tr class="t_tr">
		<td align="center" width="40%" >指标
		</td>
		<td align="center" width="60%">上年度（${year-1 }）年</td>
	</tr>
	
	<!-- 企业财务 -->
	<c:if test="${fn:substring(nature_value,0,1)=='A' }">
	<c:set var="finance_items"
		value="&nbsp;&nbsp;营业（销售）收入,
				 &nbsp;&nbsp;主营业务收入,
				 &nbsp;&nbsp;利润总额,
				 &nbsp;&nbsp;主营业务利润,
				 &nbsp;&nbsp;净利润,
				 &nbsp;&nbsp;纳税总额,
				 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其中，增值税,
				 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其中，营业税,
				 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其中，企业所得税,
				 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其中，个人所得税,
				 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其中，其他税,
				 &nbsp;&nbsp;年末资产总额,
				 &nbsp;&nbsp;其中：年末固定资产净值,
				 &nbsp;&nbsp;年末负债总额,
				 &nbsp;&nbsp;年末资产负债率（%）,
				 &nbsp;&nbsp;总现金流量净额,
				 &nbsp;&nbsp;经营活动现金流量净额"
		scope="page"></c:set>
		<tr class="li_1" id="finance_enterprise">
			<td style="padding: 0px">
			    <c:forEach items="${fn:split(finance_items, ',') }" var="item" varStatus="sta">
						<div class="td_item" 
							<c:if test="${sta.index%2!=0 }">style="background:#f1f1f1;"</c:if>><span style="text-align:left">${item}</span>
						</div>
				</c:forEach>
		   </td>
			<td style="border-left: 1px solid #FFF;" id="td_item_0">
								<div align="center" class="td_item" id="td_item_1">
									<span >
										<x:out select="$xmlData/data/organization/finance/income" />
									</span>
								</div>
								
								<div align="center" class="td_item" id="td_item_2" style="background:#f1f1f1;">
									<span >
										<x:out select="$xmlData/data/organization/finance/income_main" />
									</span>
								</div>
								
								<div align="center" class="td_item" id="td_item_3">
									<span>
										<x:out select="$xmlData/data/organization/finance/proft_total" />
									</span>
								</div>
								
								<div align="center" class="td_item" id="td_item_4" style="background:#f1f1f1;">
									<span >
										<x:out select="$xmlData/data/organization/finance/proft_main" />
									</span>
								</div>
								
								<div align="center" class="td_item" id="td_item_5">
									<span>
									<x:out select="$xmlData/data/organization/finance/proft" />
									</span>
								</div>
								
								<div align="center" class="td_item" id="td_item_6" style="background:#f1f1f1;">
									<span>
										<x:out select="$xmlData/data/organization/finance/fax" />
									</span>
								</div>
								
								<div align="center" class="td_item" id="td_item_7">
									<span><x:out
											select="$xmlData/data/organization/finance/fax_added" /></span>
								</div>
								<div align="center" class="td_item" id="td_item_8" style="background:#f1f1f1;">
									<span>
										<x:out select="$xmlData/data/organization/finance/fax_bussiness" />
									</span>
								</div>
								<div align="center" class="td_item" id="td_item_9">
									<span>
										<x:out
											select="$xmlData/data/organization/finance/fax_income" /></span>
								</div>
								<div align="center" class="td_item" id="td_item_10" style="background:#f1f1f1;">
									<span>
										<x:out
											select="$xmlData/data/organization/finance/fax_personal" /></span>
								</div>
								<div align="center" class="td_item" id="td_item_11">
									<span>
										<x:out
											select="$xmlData/data/organization/finance/fax_other" /></span>
								</div>
									<div align="center" class="td_item" id="td_item_12" style="background:#f1f1f1;">
									<span>
										<x:out
											select="$xmlData/data/organization/finance/assets" /></span>
								</div>
								
									<div align="center" class="td_item" id="td_item_13">
									<span>
										<x:out
											select="$xmlData/data/organization/finance/assets_fixed" /></span>
								</div>
								
								<div align="center" class="td_item" id="td_item_14" style="background:#f1f1f1;">
									<span>
										<x:out
											select="$xmlData/data/organization/finance/liabilities" /></span>
								</div>
								
								<div align="center" class="td_item" id="td_item_15">
									<span>
										<x:out
											select="$xmlData/data/organization/finance/liabilities_pre" /></span>
								</div>
								<div align="center" class="td_item" id="td_item_16" style="background:#f1f1f1;">
									<span>
										<x:out
											select="$xmlData/data/organization/finance/caseflow" /></span>
								</div>
								<div align="center" class="td_item" id="td_item_17">
									<span>
										<x:out
											select="$xmlData/data/organization/finance/caseflow_active" /></span>
								</div>
								</td>
		</tr>
		</c:if>
		
		<!-- 事业财务 -->
		<c:if test="${fn:substring(nature_value,0,1)=='B' }">
		<c:set var="finance_items"
		value="&nbsp;&nbsp;年度总收入,
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其中：事业收入,
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其中：经营收入,
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其中：其他收入,
		&nbsp;&nbsp;年度总收入增长率(%),
		&nbsp;&nbsp;年度总支出,
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其中：事业支出,
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其中：经营支出,
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其中：其他支出,
		&nbsp;&nbsp;年末资产总额,
		&nbsp;&nbsp;其中：年末固定资产原值,
		&nbsp;&nbsp;年末负债总额,
		&nbsp;&nbsp;年末资产负债率（%）,
		&nbsp;&nbsp;总现金流量净额,
		&nbsp;&nbsp;经营活动现金流量净额"
		scope="page"></c:set>
			
		<tr class="li_1" id="finance_career">
		<td style="padding: 0px">
			<c:forEach items="${fn:split(finance_items, ',') }" var="item" varStatus="sta">
				<div class="td_item"
					<c:if test="${sta.index%2!=0 }">style="background:#f1f1f1;"</c:if>>${item }
				</div>
			</c:forEach>
		</td>
					<td style="border-left: 1px solid #FFF;">
						<div class="td_item" align="center" >
							<x:out 
							select="$xmlData/data/finances/income_total" />
						</div>
						<div class="td_item" align="center" style="background:#f1f1f1;">
						   <x:out 
							select="$xmlData/data/finances/income_tech" />
						</div>
						<div class="td_item" align="center" >
							<x:out 
							select="$xmlData/data/finances/income_product" />
						</div>
						<div class="td_item" align="center" style="background:#f1f1f1;" >
							<x:out 
							select="$xmlData/data/finances/income_other" />
						</div>
						<div class="td_item" align="center" >
							<x:out 
							select="$xmlData/data/finances/income_rate" />
						</div>
						<div class="td_item" align="center" style="background:#f1f1f1;" >
							<x:out 
							select="$xmlData/data/finances/outcome" />
						</div>
						<div class="td_item" align="center" >
							<x:out 
							select="$xmlData/data/finances/outcome_tech" />
						</div>
						<div class="td_item" align="center" style="background:#f1f1f1;" >
							<x:out 
							select="$xmlData/data/finances/outcome_product" />
						</div>
						<div class="td_item" align="center" >
							<x:out 
							select="$xmlData/data/finances/outcome_other" />
						</div>
							<div class="td_item" align="center" style="background:#f1f1f1;">
							<x:out 
							select="$xmlData/data/finances/assets" />
						</div>
					<div class="td_item" align="center">
						<x:out 
							select="$xmlData/data/finances/assets_fixed" />
					</div>
								<div class="td_item" align="center" style="background:#f1f1f1;">
								<x:out 
							select="$xmlData/data/finances/liabilities" />
								</div>
								<div class="td_item" align="center">
									<x:out 
							select="$xmlData/data/finances/liabilities_pre" />
								</div>
								<div class="td_item" align="center" style="background:#f1f1f1;">
									<x:out 
							select="$xmlData/data/finances/caseflow" />
								</div>
								<div class="td_item" align="center">
								<x:out 
							select="$xmlData/data/finances/caseflow_active" />
								</div>
					</td>
	</tr>
		</c:if>
		
</table>
	
	
